package com.pet.petadoption.petstorage.mapper;

import com.pet.petadoption.adoption.entity.Adoption;
import com.pet.petadoption.pet.entity.Pet;
import com.pet.petadoption.petstorage.entity.Petstorage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 */
@Mapper
public interface PetstorageMapper {
    List<Petstorage> findAll(Map<String,Object> map) ;
    Boolean delById(@Param("id") Integer id);
    Petstorage findById(Map<String,Object> map);
    List<Petstorage> findByUname (Map<String,Object> map);
    Integer delArr(@Param("ids") String ids);
    Boolean addStorage(Petstorage petstorage);
    Pet getId(Pet pet);
    Integer accessPetStroage(@Param("id") Integer id);
}




